package com.gxa.community.sso.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author juran
 * @since 2022-07-19
 */
@Data
@Entity
@Table(name = "user_info")
@ApiModel(value = "UserInfo对象", description = "用户/团长信息表")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty("自增ID")
    @TableId(type = IdType.AUTO)
    @Column(name = "user_id")
    private Integer userId;

    @ApiModelProperty("注册时间/时间戳")
    @Column(name = "create_time")
    private Long createTime;

    @ApiModelProperty("昵称")
    @Column(name = "nick_name")
    private String nickName;

    @ApiModelProperty("身份证号")
    @Column(name = "card_id")
    private String cardId;

    @ApiModelProperty("手机号")
    @Column(name = "phone")
    private String phone;

    @ApiModelProperty("性别/1-男/0-女")
    @Column(name = "sex")
    private Integer sex;

    @ApiModelProperty("地址")
    @Column(name = "address")
    private String address;

    @ApiModelProperty("用户类型/1-用户/2-团长")
    @Column(name = "type")
    private Integer type;

    @ApiModelProperty("用户类型/1-用户/2-团长")
    @Column(name = "token")
    private String token;

    @ApiModelProperty("状态")
    @Column(name = "status")
    private Integer status;

}
